﻿using UnityEngine;
namespace LitBT
{
    /// <summary>
    /// DebugLog节点
    /// 输出一些信息，用于调试
    /// </summary>
    public class DebugLogNode : ActionNode
    {
        /// <summary>
        /// 打印消息
        /// </summary>
        public string message;
        protected override void OnStart()
        {
            Debug.Log($"LitBT_DebugNode_OnStart{message}");
        }

        protected override void OnStop()
        {
            Debug.Log($"LitBT_DebugNode_OnStop{message}");
        }

        protected override State OnUpdate()
        {
            Debug.Log($"LitBT_DebugNode_OnUpdate{message}");
            return State.Success;
        }
    }
}